<?php

$factory->define(App\Models\Attachment::class, function (Faker\Generator $faker) {
    $image = $faker->randomElement([
        "https://lccdn.phphub.org/uploads/images/201806/01/5320/7kG1HekGK6.jpg",
        "https://lccdn.phphub.org/uploads/images/201806/01/5320/1B3n0ATKrn.jpg",
        "https://lccdn.phphub.org/uploads/images/201806/01/5320/r3BNRe4zXG.jpg",
        "https://lccdn.phphub.org/uploads/images/201806/01/5320/C0bVuKB2nt.jpg"
    ]);
    return [
        'name' => $faker->name,
        'uri' => $image,
        'type' => 0,
        'ext' => 'png'
    ];
});